<%-- 
    Document   : add_keahlian
    Created on : Jan 15, 2014, 3:52:19 AM
    Author     : Muhammad Dony
--%>

<%@include file="../header_user.jsp" %>
        <ul class="nav nav-tabs">
            <li><a href="./identitas">Identitas</a></li>
            <li><a href="./pendidikan">Riwayat Pendidikan</a></li>
            <li><a href="./organisasi">Riwayat Organisasi</a></li>
            <li><a href="./panitia">Riwayat Kepanitian</a></li>
            <li><a href="./prestasi">Prestasi</a></li>
            <li><a href="./keahlian">Keahlian</a></li>
        </ul>
<%@page import="java.util.List"%>
<%@page import="data.KeahlianData"%>
<%
    KeahlianData dataKeahlian = (KeahlianData) request.getAttribute("dataKeahlian");
    String action = (String) request.getAttribute("buttonName");
%>
        <div class="col-lg-10">
            <div class="row">
                <div class="col-lg-3 col-lg-offset-6 well margin-atas">
                    <form class="form-horizontal col-lg-12 text-center" action="keahlian" role="form" method="POST" parsley-validate>
                        <div class="form-group">
                            <h2>Keahlian</h2>
                            <div class="controls">
                                <label>ID</label>
                                <input class="form-control" type="hidden" name="no" parsley-trigger="change" value="<% if(action.equals("Edit")){ out.print(dataKeahlian.getNomor()); }%>" />
                                <input class="form-control" type="text" placeholder="Username" name="ID" parsley-trigger="change" value="<%=user.getID()%>" readonly />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Bidang Keahlian</label>
                                <input class="form-control" type="text" name="bidang" placeholder="Bidang Keahlian" value="<% if(action.equals("Edit")){ out.print(dataKeahlian.getBidang()); }%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Jenis Keahlian</label>
                                <input class="form-control" type="text" name="jenis" placeholder="Jenis Keahlian" value="<% if(action.equals("Edit")){ out.print(dataKeahlian.getJenis()); }%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Tingkat Keahlian</label>
                                <input class="form-control" type="text" name="tingkat" placeholder="Tingkat Keahlian" value="<% if(action.equals("Edit")){ out.print(dataKeahlian.getTingkat()); }%>">
                            </div>
                            
                        </div>   
                        <div class="form-group">
                            <div class="controls">
                                <input type="submit" class="btn btn-primary form-control" name="action" value="<%=action%>">
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
<%@include file="../footer_user.jsp" %>